<template>
  <el-container>
    <el-header class="header"></el-header>
    <el-container>
    <el-aside width="14%" class="aside">
      <el-menu
       @open="handleOpen"
       @close="handleClose"
       class="el-menu-vertical-demo"
       text-color="#fff"
       active-text-color="#ffd04b"
       background-color="#545c64">
       <el-submenu index="1">
         <template slot="title">
           <i class="el-icon-s-home"></i>
           <span>首页</span>
           <el-menu-item></el-menu-item>
         </template>
       </el-submenu>
      </el-menu>
    </el-aside>
    <el-main class="main"></el-main>
    </el-container>
  </el-container>
</template>
<script>
export default {
  data () {
    return {

    }
  },
  components: {

  },
  computed: {

  },
  methods: {
    handleOpen (key, keyPath) {
      console.log(key, keyPath)
    },
    handleClose (key, keyPath) {
      console.log(key, keyPath)
    }
  },
  mounted () {

  }
}
</script>

<style lang="scss">
  @import '../assets/style/common.scss';
  .el-container {
    height: 100%;
    .header {
      background-color: rgb(255,255,255);
      border-bottom: 1px solid #e4e4e4;
    }
    .aside {
      background-color: rgb(48,65,86);
    }
    .main {
      background-color: rgb(255,255,255);
    }
  }
</style>
